package com.cloudm.technician.ui.modules.personal.change_nick_name

import com.cloudm.technician.data.db.DbHelper
import com.cloudm.technician.data.network.PersonalApi
import com.cloudm.technician.data.preferences.PreferencesHelper
import com.cloudm.technician.di.PerFragment
import dagger.Module
import dagger.Provides

/**
 * 作者: wesley
 * 时间: 2017/12/26
 * 描述: 协议接口
 */
@Module
class ChangeNickNamePresenterModule(private val view: ChangeNickNameContract.View) {

    @PerFragment
    @Provides
    fun provideChangeNickNamePresenter(personalApi: PersonalApi,
                                       preferencesHelper: PreferencesHelper,
                                       dbHelper: DbHelper) = ChangeNickNamePresenter(view,
            personalApi, preferencesHelper, dbHelper)
}